#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include <QSignalMapper>

namespace Ui {
class MainWindow;
}

class QTcpSocket;

class MainWindow : public QMainWindow
{
    Q_OBJECT
    
public:
    explicit MainWindow(QWidget *parent = 0);
    ~MainWindow();
    
public slots:
	void paint(int mode, QPoint point);
	void onAppStateNeeded(QTcpSocket *s);
	void setLock(int l);
	void setLock(bool b);

signals:
	void painted(int mode, QPoint point);
	void sceneState(QTcpSocket *socket, QList<QPair<int, QPoint> > list);
	void lockState(QTcpSocket *socket, bool);
	void locked(bool);

private:
    Ui::MainWindow *ui;
	QSignalMapper mapper;
};

#endif // MAINWINDOW_H
